package com.wyzz.hr.hibernate;

import java.util.Collection;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;

public interface IHibernateUtil {

	public abstract List exeHqlList(String s);

	public abstract List exeHqlList(String s, int i, int j);

	public abstract List exeHqlList(String s, String as[], String as1[]);

	public abstract void updateHqlQuery(String s);

	public abstract Object exeHql(String s);

	public abstract void saveOrupdate(Object obj);

	public abstract void saveOrupdate(Collection collection);

	public abstract void saveObject(Object obj);

	public abstract List getObjects(Class class1, String as[]);

	public abstract Object loadObject(Class class1, Object obj, String as[],
			boolean aflag[]);

	public abstract Object loadObjectByName(Class class1, String s, Object obj,
			String as[], boolean aflag[]);

	public abstract void deleteObject(Object obj);

	public abstract void deleteObject(Class class1, Object obj);

	public abstract void deleteCollection(Collection collection);

	public abstract void updateObject(Object obj);

	public abstract List findByCriteria(DetachedCriteria detachedcriteria);

	public abstract List findByCriteria(DetachedCriteria detachedcriteria,
			int i, int j);

	public abstract int findRowCountByCriteria(DetachedCriteria detachedcriteria);

	public abstract Object exeHqlObject(String s, Object aobj[]);

	public abstract List findByProjectionDetachedCriteria(
			DetachedCriteria detachedcriteria);
}
